"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var express = require("express");
var router = express.Router();
router.get('/', function (req, res) {
    res.status(200).json({
        message: "It works!!!"
    });
});
router.post('/', function (req, res) {
    res.status(200).json({
        message: 'Handling POST requests to /products!'
    });
});
router.get('/:orderId', function (req, res, next) {
    var id = req.params.orderId;
    if (id === 'good') {
        res.status(200).json({
            message: "orderId is " + id + " good man!",
            id: id
        });
    }
    else {
        res.status(200).json({
            message: 'no promisson orderjs!'
        });
    }
});
module.exports = router;
